package org.paradise.dao;


import java.io.Serializable;
import java.util.List;

public interface CommonDao<E,PK extends Serializable> {
    public List<E> getAll();

    public E get(PK id);

    public void add(E user);

    public void delete(PK id);

    public void batchDelete(PK[] ids);

    public void update(E user);

    public List<E> getList(E condition);

}
